package classes.player 
{
	import flash.display.MovieClip;
	import flash.events.*;
	
	import classes.utils.KeySets;
	import classes.utils.PopKeys;
	import com.mttang.event.CommonEvent;
	/**
	 * ...
	 * @author fox
	 */
	public class Fighter extends MovieClip
	{
		//键盘设置
		private var keysets:KeySets;		
		
		public function Fighter() 
		{
		}		
		//键盘设置属性
		public function set keySets(value:KeySets):void{
			keysets = value;
			addEventListener(Event.ENTER_FRAME, enterFrameHandler, false, 0, true);
		}
		
		private function enterFrameHandler(e:Event):void {
			if (PopKeys.isDown(49)) {	
							
			}
			
			if (PopKeys.isDown(27)) {	
				dispatchEvent(new Event(CommonEvent.BACK_EVENT));		
			}
		}
		
/***********************************************************************************/		
	}
}